-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(applepay): calculate tax amount dynamically while changing shipping address in apple pay sdk #610
Conversation
Review changes with SemanticDiff. |
…ing address in apple pay sdk Calculate tax amount and shipping cost dynamically while changing shipping address in apple pay sdk and update the new amount.
9822330
to
f9e27c1
Compare
refactor
f2eb3d1
to
421ba6b
Compare
# [0.86.0](v0.85.0...v0.86.0) (2024-09-13) ### Features * **applepay:** calculate tax amount dynamically while changing shipping address in apple pay sdk ([#610](#610)) ([0804823](0804823))
@@ -83,6 +83,7 @@ type eventName = | |||
| DELETE_SAVED_PAYMENT_METHOD | |||
| DELETE_PAYMENT_METHODS_CALL_INIT | |||
| DELETE_PAYMENT_METHODS_CALL | |||
| EXTERNAL_TAX_CALCULATION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| EXTERNAL_TAX_CALCULATION_CALL
| EXTERNAL_TAX_CALCULATION_CALL_INIT
@@ -166,6 +167,7 @@ let eventNameToStrMapper = eventName => { | |||
| DELETE_SAVED_PAYMENT_METHOD => "DELETE_SAVED_PAYMENT_METHOD" | |||
| DELETE_PAYMENT_METHODS_CALL_INIT => "DELETE_PAYMENT_METHODS_CALL_INIT" | |||
| DELETE_PAYMENT_METHODS_CALL => "DELETE_PAYMENT_METHODS_CALL" | |||
| EXTERNAL_TAX_CALCULATION => "EXTERNAL_TAX_CALCULATION" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|EXTERNAL_TAX_CALCULATION_CALL=>"EXTERNAL_TAX_CALCULATION_CALL"
|EXTERNAL_TAX_CALCULATION_CALL_INIT=>"EXTERNAL_TAX_CALCULATION_CALL_INIT"
~optLogger=Some(logger), | ||
~url=uri, | ||
~apiLogType=Request, | ||
~eventName=EXTERNAL_TAX_CALCULATION, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~eventName=EXTERNAL_TAX_CALCULATION_CALL_INIT
~data, | ||
~statusCode, | ||
~apiLogType=Err, | ||
~eventName=EXTERNAL_TAX_CALCULATION, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~eventName=EXTERNAL_TAX_CALCULATION_CALL
~url=uri, | ||
~statusCode, | ||
~apiLogType=Response, | ||
~eventName=EXTERNAL_TAX_CALCULATION, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~eventName=EXTERNAL_TAX_CALCULATION_CALL
~optLogger=Some(logger), | ||
~url=uri, | ||
~apiLogType=NoResponse, | ||
~eventName=EXTERNAL_TAX_CALCULATION, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~eventName=EXTERNAL_TAX_CALCULATION_CALL
Calculate tax amount and shipping cost dynamically while changing shipping address in apple pay sdk and update the new amount.
Listening to the
onShippingContactSelected
listener while there is a change in shipping address, abd based on the new shipping address calling taxjar api to get new amount and updating that in sdk.Type of Change
Description
How did you test it?
Checklist
npm run re:build